﻿using CommunityToolkit.Mvvm.ComponentModel;
using CommunityToolkit.Mvvm.Messaging;
using CommunityToolkit.Mvvm.Messaging.Messages;
using Messenger.Views;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Markup;

namespace Messenger.ViewModels
{
    public partial class StudentViewModel : ObservableRecipient, IRecipient<PropertyChangedMessage<string>>
    {
        public StudentFormViewModel StudentFormViewModel { get; } = new StudentFormViewModel() { IsActive = true };
        public StudentListViewModel StudentListViewModel { get; } = new StudentListViewModel() { IsActive = true };

        public StudentViewModel()
        {
            IsActive = true;
        }
        [ObservableProperty]
        string? information;
        public void Receive(PropertyChangedMessage<string> message)
        {
            Information = StudentFormViewModel.ToString();
        }
    }
}
